<!--
*Author：COCO
 *代码由框架生成,任何更改都可能导致被代码生成器覆盖
 *业务请在@/extension/bom/bom/BOM_Technological.js此处编写
 -->
<template>
    <view-grid ref="grid"
               :columns="columns"
               :detail="detail"
               :editFormFields="editFormFields"
               :editFormOptions="editFormOptions"
               :searchFormFields="searchFormFields"
               :searchFormOptions="searchFormOptions"
               :table="table"
               :extend="extend">
    </view-grid>
</template>
<script>
    import extend from "@/extension/bom/bom/BOM_Technological.js";
    import { ref, defineComponent } from "vue";
    export default defineComponent({
        setup() {
            const table = ref({
                key: 'ID',
                footer: "Foots",
                cnName: '工艺流程',
                name: 'bom/BOM_Technological',
                url: "/BOM_Technological/",
                sortName: "ID"
            });
            const editFormFields = ref({"ProcessCode":"","ProcessName":"","ProcessingSequence":"","TechnologicalProcess":"","PersonCharge":"","Department":"","UnitWorkload":"","Remarks":""});
            const editFormOptions = ref([[{"title":"工序编号","field":"ProcessCode","type":"text"}],
                              [{"title":"工序名称","field":"ProcessName","type":"text"}],
                              [{"title":"加工顺序","field":"ProcessingSequence","type":"text"}],
                              [{"title":"工艺流程","field":"TechnologicalProcess","type":"text"}],
                              [{"title":"负责人","field":"PersonCharge","type":"text"}],
                              [{"title":"部门","field":"Department","type":"text"}],
                              [{"title":"单位工作量","field":"UnitWorkload","type":"text"}],
                              [{"title":"备注","field":"Remarks","type":"text"}]]);
            const searchFormFields = ref({});
            const searchFormOptions = ref([]);
            const columns = ref([{field:'ID',title:'工艺ID',type:'guid',width:110,hidden:true,readonly:true,require:true,align:'left'},
                       {field:'ProcessCode',title:'工序编号',type:'string',width:110,align:'left',sort:true},
                       {field:'ProcessName',title:'工序名称',type:'string',width:110,align:'left'},
                       {field:'ProcessingSequence',title:'加工顺序',type:'int',width:110,align:'left'},
                       {field:'TechnologicalProcess',title:'工艺流程',type:'string',width:110,align:'left'},
                       {field:'PersonCharge',title:'负责人',type:'string',width:110,align:'left'},
                       {field:'Department',title:'部门',type:'string',width:110,align:'left'},
                       {field:'UnitWorkload',title:'单位工作量',type:'int',width:110,align:'left'},
                       {field:'Remarks',title:'备注',type:'string',width:110,align:'left'},
                       {field:'CreateID',title:'创建人ID',type:'int',width:80,hidden:true,align:'left'},
                       {field:'Creator',title:'创建人',type:'string',width:130,hidden:true,align:'left'},
                       {field:'CreateDate',title:'创建时间',type:'datetime',width:110,hidden:true,align:'left',sort:true},
                       {field:'ModifyID',title:'修改人ID',type:'int',width:80,hidden:true,align:'left'},
                       {field:'Modifier',title:'修改人',type:'string',width:130,hidden:true,align:'left'},
                       {field:'ModifyDate',title:'修改时间',type:'datetime',width:110,hidden:true,align:'left',sort:true}]);
            const detail = ref({
                cnName: "#detailCnName",
                table: "#detailTable",
                columns: [],
                sortName: "",
                key: ""
            });
            return {
                table,
                extend,
                editFormFields,
                editFormOptions,
                searchFormFields,
                searchFormOptions,
                columns,
                detail,
            };
        },
    });
</script>
